package com.gome.ss.core.schedule;

public class ThreadTask extends Thread {
	private ThreadTaskBase task = null;
	private boolean isTaskStop = false;
	
	public ThreadTask(ThreadTaskBase task) {
		this.task = task;
	}

	public boolean isTaskStop() {
		return this.isTaskStop;
	}
	
	public void run() {
		task.execute();
		this.isTaskStop = true;
	}
}
